#@adminLayout()
#define main()
#set(map={C:1,R:1,U:1,D:1,I:1,E:1,O:1},aTh = ["ID","名称","创建时间"],aTd = ["id","name","createAt"])
<div class="card">
    #@cardIndex("角色管理","sys/role",map,aTh,aTd)
</div>
#end
#define cardBtn()
#end
#define cardQuery()
<div class="col-sm-4">
    <div class="form-group">
        <lable><i class="zmdi zmdi-label-alt zmdi-hc-fw"></i>名称</lable>
        <input type="text" name="name" value="#(model.name??)"
               class="form-control" placeholder="请输入名称">
        <i class="form-group__bar"></i>
    </div>
</div>
#end
#define cardIndexBtn()
<a class="btn btn-secondary btn--icon-text waves-effect"
   data-pjax href="/admin/sys/role/assignPermissions?id=#(x.id)">
    <i class="zmdi zmdi-pin-account zmdi-hc-fw" title="分配权限"></i>
</a>
#end